To install Trilium on your desktop, follow these steps:
trilium executable
found within the unzipped folder.On Linux, Trilium is also available on Flathub, for both x86_64 and ARM (aarch64). Install it from your software center (e.g. GNOME Software or KDE Discover), or from a terminal:
flatpak install flathub org.triliumnotes.Trilium
Updates arrive through the software center or flatpak update,
like any other Flatpak.
The Flathub version runs in a sandbox and keeps its data directory in ~/.var/app/org.triliumnotes.Trilium/data/trilium-data.
It cannot see the data directory of a .deb, .rpm,
AppImage or .zip installation (~/.local/share/trilium-data),
so it starts with an empty database. To bring existing notes over:
Close Trilium, in both the old installation and the Flatpak.
Copy the old data directory into the sandbox:
mkdir -p ~/.var/app/org.triliumnotes.Trilium/data
cp -a ~/.local/share/trilium-data ~/.var/app/org.triliumnotes.Trilium/data/
Start the Flatpak version.
If ~/.var/app/org.triliumnotes.Trilium/data/trilium-data already
exists because the Flatpak version was started before, remove or rename
it first.
Trilium offers various startup scripts to customize your experience:
trilium-no-cert-check: Starts Trilium without validating TLS certificates, useful if connecting
to a server with a self-signed certificate.
NODE_TLS_REJECT_UNAUTHORIZED=0 environment
variable before starting Trilium.trilium-portable: Launches Trilium in portable mode, where
the data directory is created within
the application's directory, making it easy to move the entire setup. Electron's
internal data (caches, dictionaries, etc.) is also stored within the data
directory, so no files are written to the system's roaming profile.trilium-safe-mode: Boots Trilium in "safe mode," disabling
any startup scripts that might cause the application to crash.For Trilium desktop users who wish to synchronize their data with a server instance, refer to the Synchronization guide for detailed instructions.